package ltd.rycloud.tms.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the businesstrip database table.
 * 出差审批
 *
 * （用户名、出差事项、目的地、出差类型（1.培训、2.考察、3.开会、4.参赛）
 * 同行人员、出差原因、出差开始时间、出差结束时间、通知文件[存储文件链接，主要是包括开会通知、培训通知、参赛动作，如无相关文件保存none]
 * 预计费用、审批状态（1.未审批、2.同意、3.不同意）
 */
@Entity
@NamedQuery(name="Businesstrip.findAll", query="SELECT b FROM Businesstrip b")
public class Businesstrip implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;

	private double budget;//费用预计

	private String destination;//目的地

	@Temporal(TemporalType.DATE)
	private Date enddate;//出差结束时间

	private String file;//文件

	private String friend;//同行人员

	private String matter;//出差事项

	private String reason;//出差原因

	@Temporal(TemporalType.DATE)
	private Date startdate;//开始时间

	private int state;//审批状态

	private int type;//出差类型

	private String username;//用户名

	public Businesstrip() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public double getBudget() {
		return this.budget;
	}

	public void setBudget(double budget) {
		this.budget = budget;
	}

	public String getDestination() {
		return this.destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}

	public Date getEnddate() {
		return this.enddate;
	}

	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}

	public String getFile() {
		return this.file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public String getFriend() {
		return this.friend;
	}

	public void setFriend(String friend) {
		this.friend = friend;
	}

	public String getMatter() {
		return this.matter;
	}

	public void setMatter(String matter) {
		this.matter = matter;
	}

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Date getStartdate() {
		return this.startdate;
	}

	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}

	public int getState() {
		return this.state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getType() {
		return this.type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}